import { axios } from '@/utils/request'

// 砍价分类
export function catList(params) {
  return axios({
    url: '/activity-cut-price/cat-list',
    method: 'get',
    params,
  })
}

export function catInfo(params) {
  return axios({
    url: '/activity-cut-price/cat-info',
    method: 'get',
    params,
  })
}

export function catStatus(data) {
  return axios({
    url: '/activity-cut-price/cat-status',
    method: 'post',
    data,
  })
}

export function catSave(data) {
  return axios({
    url: '/activity-cut-price/cat-save',
    method: 'post',
    data,
  })
}

// 轮播广告
export function bannerList(params) {
  return axios({
    url: '/activity-cut-price/banner-list',
    method: 'get',
    params,
  })
}

export function bannerDel(data) {
  return axios({
    url: '/activity-cut-price/banner-del',
    method: 'post',
    data,
  })
}

export function bannerSave(data) {
  return axios({
    url: '/activity-cut-price/banner-save',
    method: 'post',
    data,
  })
}

// 砍价列表
export function listSelect() {
  return axios({
    url: '/activity-cut-price/list-select',
    method: 'get',
  })
}

// 砍价列表
export function list(params) {
  return axios({
    url: '/activity-cut-price/list',
    method: 'get',
    params,
  })
}

export function save(data) {
  return axios({
    url: '/activity-cut-price/save',
    method: 'post',
    data,
  })
}

// 砍价列表
export function info(params) {
  return axios({
    url: '/activity-cut-price/get-info',
    method: 'get',
    params,
  })
}

export function remove(data) {
  return axios({
    url: '/activity-cut-price/del',
    method: 'post',
    data,
  })
}

// 砍价设置
export function conf() {
  return axios({
    url: '/activity-cut-price/conf',
    method: 'get',
  })
}

export function confSave(data) {
  return axios({
    url: '/activity-cut-price/conf-save',
    method: 'post',
    data,
  })
}

// 砍价信息
export function orderList(params) {
  return axios({
    url: '/activity-cut-price/order-list',
    method: 'get',
    params,
  })
}

export function orderDel(data) {
  return axios({
    url: '/activity-cut-price/order-del',
    method: 'post',
    data,
  })
}
